package com.kgc.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.kgc.utils.Date2LongSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author shkstart
 * @create 2020-11-16 19:59
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("order_master")
public class OrderMaster {
    /*订单表id*/
    private String orderId;
    /*订单编号*/
    private String orderNumber;
    /*桌号*/
    private Integer orderTableNum;
    /*买家微信openid*/
    private String buyerOpenid;
    /*订单总金额*/
    private double orderAmount;
    /*订单状态*/
    private Integer orderStatus;
    /*支付状态*/
    private Integer payStatus;
    /*创建时间*/
    //@JsonSerialize(using = Date2LongSerializer.class)
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    /*客户下单备注信息*/
    private String comment;
}
